// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addPermissionToRole POST /api/role/add/permission */
export async function addPermissionToRoleUsingPost(
  body: API.AddPermissionToRoleDTO,
  options?: { [key: string]: any }
) {
  return request<API.ResultVoid_>('/api/role/add/permission', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
